import Vue from "vue";
import App from "@/App";
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import MySwiper from '@/components/MySwiper'
import "swiper/css/swiper.min.css";
import '@/api'
import store from '@/store'
import '@/mock/mockServer'

//全局注册组件
Vue.component('TypeNav',TypeNav)
Vue.component('MySwiper',MySwiper)

new Vue({
    el:'#app',
    beforeCreate(){
      Vue.prototype.$bus=this //安装事件总线全局
    },
  render: (h) => h(App),
  router,
  store
});
